C++ library interface environment information

您所在的位置:网站首页 matlab library C++ library interface environment information

C++ library interface environment information

#C++ library interface environment information| 来源: 网络整理| 查看: 265

CLibraryConfiguration

C++ library interface environment information

Since R2023a

expand all in pageDescription

CLibraryConfiguration objects contain information about the settings and status of a MATLAB® interface to a C++ library. The environment information is persistent across different MATLAB sessions.

Creation

To create a CLibraryConfiguration object or change the settings, call clibConfiguration. The library is loaded when you call a command in the clib package. You cannot change the execution mode after MATLAB loads the library. To change how the library is loaded, restart MATLAB, and then call clibConfiguration.

Properties

expand all

InterfaceLibraryPath — Path to interface library string

This property is read-only.

Path to the interface library, returned as a string.

Libraries — Libraries used to build interface string

This property is read-only.

Libraries used to build the interface, returned as a string or an array of string.

Loaded — Process status 0 (default) | 1

Process status, specified as 1 if the library is loaded, otherwise 0.

ExecutionMode — Execution mode inprocess (default) | outofprocess

Execution mode indicating whether to load the C++ interface in the same process as MATLAB or in an external process, specified as inprocess or outofprocess. To set the ExecutionMode property, call clibConfiguration with the ExecutionMode argument.

ProcessID — MATLAB process ID uint64

This property is read-only.

MATLAB process ID, returned as uint64. If the library is not loaded, then ProcessID is not displayed.

ProcessName — Process name in the registry string

This property is read-only.

Process name in the registry, returned as a string. The default name for out-of-process is MATLABCLibHost. If the library is not loaded, then ProcessName is not displayed.

Object FunctionsunloadUnload process associated with C++ library Examples

collapse all

Display Configuration for Library

Suppose that you built an interface libnameInterface.dll in C:\work which is on the MATLAB path for a library libname.lib.

Call function myfunc in the library:

clib.libname.myfunc

Display the configuration:

configObj = clibConfiguration("libname")configObj = CLibraryConfiguration for libname with properties: InterfaceLibraryPath: "C:\work" Libraries: "libname.lib" Loaded: 1 ExecutionMode: inprocess ProcessID: 12345Version History

Introduced in R2023a

See Also

clibConfiguration



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3